<?php
require_once __DIR__.'/BOFactory.class.php';
	
	class OrderBORepository
	{   
		function getOrderBOs($status=null)
		{	
			$orderBOs=array();
			$categories = R::find( 'isorder','status= :status',array(':status'=>$status) );
			foreach($categories as $k => $order)
			{
				array_push($orderBOs,BOFactory::getOrderBO($order->id));
			}			
			return $orderBOs;
		}
		
		function getOrderBO($id)
		{
			return BOFactory::getOrderBO($id);
		}
		
	}